package com.ftg.learn.controller;

import com.ftg.learn.service.ShopCategoryService;
import com.ftg.learn.util.R;
import com.ftg.learn.vo.CategorySelectVo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 布衣
 */
@RestController
public class ShopCategoryController {

    @Resource
    private ShopCategoryService shopCategoryService;

    @GetMapping("/allCategorySelect")
    public R<List<CategorySelectVo>> allCategorySelect() {
        return shopCategoryService.allCategorySelect();
    }

}
